package com.ruoyi.tel.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.tel.mapper.TelScheduleLogMapper;
import com.ruoyi.tel.domain.TelScheduleLog;
import com.ruoyi.tel.service.ITelScheduleLogService;

/**
 * 调度日志Service业务层处理
 * 
 * @author lanyuyan
 * @date 2025-04-02
 */
@Service
public class TelScheduleLogServiceImpl implements ITelScheduleLogService 
{
    @Autowired
    private TelScheduleLogMapper telScheduleLogMapper;

    /**
     * 查询调度日志
     * 
     * @param logId 调度日志主键
     * @return 调度日志
     */
    @Override
    public TelScheduleLog selectTelScheduleLogByLogId(Long logId)
    {
        return telScheduleLogMapper.selectTelScheduleLogByLogId(logId);
    }

    /**
     * 查询调度日志列表
     * 
     * @param telScheduleLog 调度日志
     * @return 调度日志
     */
    @Override
    public List<TelScheduleLog> selectTelScheduleLogList(TelScheduleLog telScheduleLog)
    {
        return telScheduleLogMapper.selectTelScheduleLogList(telScheduleLog);
    }

    /**
     * 新增调度日志
     * 
     * @param telScheduleLog 调度日志
     * @return 结果
     */
    @Override
    public int insertTelScheduleLog(TelScheduleLog telScheduleLog)
    {
        return telScheduleLogMapper.insertTelScheduleLog(telScheduleLog);
    }

    /**
     * 修改调度日志
     * 
     * @param telScheduleLog 调度日志
     * @return 结果
     */
    @Override
    public int updateTelScheduleLog(TelScheduleLog telScheduleLog)
    {
        return telScheduleLogMapper.updateTelScheduleLog(telScheduleLog);
    }

    /**
     * 批量删除调度日志
     * 
     * @param logIds 需要删除的调度日志主键
     * @return 结果
     */
    @Override
    public int deleteTelScheduleLogByLogIds(Long[] logIds)
    {
        return telScheduleLogMapper.deleteTelScheduleLogByLogIds(logIds);
    }

    /**
     * 删除调度日志信息
     * 
     * @param logId 调度日志主键
     * @return 结果
     */
    @Override
    public int deleteTelScheduleLogByLogId(Long logId)
    {
        return telScheduleLogMapper.deleteTelScheduleLogByLogId(logId);
    }
}
